<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>我的收藏</title>
    <!--css style-->
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/font.css">
    <link rel="stylesheet" href="responsive/flexible.css">
    <script src="responsive/flexible.js"></script>
</head>
<body class="personal_center collection">
    <header>
        <a href="javascript:void(0)" class="pre_page"></a>
        我的收藏
    </header>

    <section class="main">
        <ul>
            <li>
                <div class="pic">
                    <a href="detail_pro.html"><img src="img/collection.jpg" alt=""></a>
                </div>
                <div class="desc">
                    <h3><a href="detail_pro.html">MUJI亚麻棉靠枕</a></h3>
                    <p><a href="detail_pro.html">北欧美式壁灯铁艺简约现代灯具楼梯背景墙床头灯过道灯卧室客厅</a></p>
                    <div class="price">￥<strong>238</strong></div>
                    <div class="operation"><a href="javascript:void(0)" class="attention cancel">取消关注</a><a href="javascript:void(0)" class="tocart" onclick="addToCart(1)">加入购物车</a></div>
                </div>
            </li>
            <li>
                <div class="pic">
                    <a href="detail_pro.html"><img src="img/collection.jpg" alt=""></a>
                </div>
                <div class="desc">
                    <h3><a href="detail_pro.html">MUJI亚麻棉靠枕</a></h3>
                    <p><a href="detail_pro.html">北欧美式壁灯铁艺简约现代灯具楼梯背景墙床头灯过道灯卧室客厅</a></p>
                    <div class="price">￥<strong>238</strong></div>
                    <div class="operation"><a href="javascript:void(0)" class="attention cancel">取消关注</a><a href="javascript:void(0)" class="tocart" onclick="addToCart(2)">加入购物车</a></div>
                </div>
            </li>
            <li>
                <div class="pic">
                    <a href="detail_pro.html"><img src="img/collection.jpg" alt=""></a>
                </div>
                <div class="desc">
                    <h3><a href="detail_pro.html">MUJI亚麻棉靠枕</a></h3>
                    <p><a href="detail_pro.html">北欧美式壁灯铁艺简约现代灯具楼梯背景墙床头灯过道灯卧室客厅</a></p>
                    <div class="price">￥<strong>238</strong></div>
                    <div class="operation"><a href="javascript:void(0)" class="attention cancel">取消关注</a><a href="javascript:void(0)" class="tocart" onclick="addToCart(3)">加入购物车</a></div>
                </div>
            </li>
            <li>
                <div class="pic">
                    <a href="detail_pro.html"><img src="img/collection.jpg" alt=""></a>
                </div>
                <div class="desc">
                    <h3><a href="detail_pro.html">MUJI亚麻棉靠枕</a></h3>
                    <p><a href="detail_pro.html">北欧美式壁灯铁艺简约现代灯具楼梯背景墙床头灯过道灯卧室客厅</a></p>
                    <div class="price">￥<strong>238</strong></div>
                    <div class="operation"><a href="javascript:void(0)" class="attention cancel">取消关注</a><a href="javascript:void(0)" class="tocart" onclick="addToCart(4)">加入购物车</a></div>
                </div>
            </li>
        </ul>
        <!--加入购物车成功提示框-->
        <div class="to_cart_box">
            <img src="img/success.png" alt="">
            <p>加入购物车成功</p>
        </div>
    </section>


</body>
<script src="js/jquery.js"></script>
<script>
    function addToCart(id){
        $(".to_cart_box").show();
        setTimeout(function(){
            $(".to_cart_box").hide();
        },2000);
    }
</script>
</html>